package org.bigdata.framework.core.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author dal.anhuifeng
 * @since 2017-08-28
 */
@TableName("community_knowledge_graph_node")
public class CommunityKnowledgeGraphNode implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 关联知识图谱表
	 */
	@TableField(value="knowledge_graph_id")
	private Integer knowledgeGraphId;

	/**
	 * 节点名称（最多40个字符）
	 */
	@TableField(value="name_zh")
	private String nameZh;

	/**
	 * 编码（随机生成 ） 
	 */
	private String code;

	/**
	 * 父级节点（最多支持三级）
	 */
	@TableField(value="parent_id")
	private Integer parentId;

	/**
	 * 级别
	 */
	private Integer level;

	/**
	 * 排序
	 */
	private Integer sort;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getKnowledgeGraphId() {
		return knowledgeGraphId;
	}

	public void setKnowledgeGraphId(Integer knowledgeGraphId) {
		this.knowledgeGraphId = knowledgeGraphId;
	}

	public String getNameZh() {
		return nameZh;
	}

	public void setNameZh(String nameZh) {
		this.nameZh = nameZh;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

}
